package com.shrct.businessprocess.purchase.events;

import com.shrct.businessprocess.purchase.RCBudgetContract;
import com.shrct.businessprocess.purchase.events.RCBudgetContractEventsListener;
import edu.fudan.mylang.pf.event.EntityEventsManager;
import java.util.Collection;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("com.shrct.businessprocess.purchase.events.RCBudgetContractEventsManager")
public class RCBudgetContractEventsManager extends EntityEventsManager<RCBudgetContract> {
  @Autowired(required = false)
  private Collection<RCBudgetContractEventsListener> listeners = com.google.common.collect.Lists.newArrayList();;
  
  protected Collection<RCBudgetContractEventsListener> getListeners() {
    return listeners;
  }
  
  public void fireAmountChanged(final RCBudgetContract entity) {
    for (edu.fudan.mylang.pf.event.IEntityEventsListner<?> listener : listeners) {
    	((RCBudgetContractEventsListener)listener).AmountChanged(entity);
    }
    
  }
}
